package com.example.spring_aop.controller;

import com.example.spring_aop.aspect.MyAspect;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: TestController
 * @author: 芃
 * @description:
 * @date: 2024/12/30 14:32
 */
@RestController
@RequestMapping("/test")
@ResponseBody
public class TestController {

    @RequestMapping("/t1")
    @MyAspect
    public String test1() {
        return "test1";
    }

    @RequestMapping("/t2")
    @MyAspect
    public String test2() {
        return "test2";
    }

    @RequestMapping("/t3")
    @MyAspect
    public Boolean test3(String username, String password){
        return true;
    }

}
